package com.tao.graduation.Dao;

import com.tao.graduation.Pojo.Appointment;
import com.tao.graduation.Pojo.Doctor;
import com.tao.graduation.Pojo.Option;
import com.tao.graduation.Pojo.Patient;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface PatientDao {
    public Patient queryPatientByUsername(Integer id);

    public List<Option> queryOption();

    public Map<String,String> queryPatientInfo(Integer id);

    public List<Doctor> queryDoctorByOptionType(String name);

    public int Appointment(Appointment appointment);

    public List<Map<String,String>> AppointmentRecord(Integer id);

    List<Doctor> queryDoctor();

    int CanOrder(int id);

    int insertSelfInfo( Patient patient);
}
